﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cashier_Model
{
    [TableAttribute(Tablename = "role_purview")]
    public class RolePurview: BaseModel
    {
        private Int64 id;

        [TableAttribute(Columnname = "id", Columntype = "bigint", Iskey = true, Iscondition = true, Fieldothername = "a", Isdeletefield = true)]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private Int64 roleid;

        [TableAttribute(Columnname = "role_id", Columntype = "bigint", Iscondition = true, Fieldothername = "a", Isdeletefield=true)]
        public Int64 Roleid
        {
            get { return roleid; }
            set { roleid = value; }
        }

        private Int64 purviewid;

        [TableAttribute(Columnname = "purview_id", Columntype = "bigint")]
        public Int64 Purviewid
        {
            get { return purviewid; }
            set { purviewid = value; }
        }

        private String name;

        [TableAttribute(Columnname = "name", Columntype = "varchar")]
        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        private String code;

        [TableAttribute(Columnname = "code", Columntype = "varchar")]
        public String Code
        {
            get { return code; }
            set { code = value; }
        }

        private String action;

        [TableAttribute(Columnname = "action", Columntype = "varchar")]
        public String Action
        {
            get { return action; }
            set { action = value; }
        }

        private String formname;

        [TableAttribute(Columnname = "formname", Columntype = "varchar")]
        public String Formname
        {
            get { return formname; }
            set { formname = value; }
        }
    }
}
